<template>
  <div>解构store:StoreToRefs</div>
  <div>
    {{count}}
  </div>
  <div>
    {{doubleCount}}
  </div>
</template>
<script setup lang="ts">
import {useCounterStore} from '../../stores/counter'
import {storeToRefs} from 'pinia'
const counterStore = useCounterStore()
const {count,doubleCount} = storeToRefs(counterStore)
</script>